package com.tudulist.service.rest;

import javax.inject.Inject;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;

import org.springframework.stereotype.Service;

import com.tudulist.dao.TodoListDao;
import com.tudulist.model.TodoList;

@Service
@Path("/todolist")
public class TodoListRestManager {

	@Inject
	TodoListDao todoListDao;

	@GET
	@Path("{todolistId}")
	public TodoList findById(@PathParam("todolistId") Long todolistId) {
		return todoListDao.find(todolistId);
	}
}
